package Kuaishou;

import java.util.List;

import com.google.common.base.Splitter;
import com.google.common.collect.Lists;

/**
 * @author leiwenkang <leiwenkang@kuaishou.com>
 * Created on 2022-03-25
 */
public class Test51Contain {
    public static void main(String[] args) {
        List<String> appIds = Lists.newArrayList();
        appIds.add("kuaishou");
        appIds.add("kuaishou_nebula");

        String appId = "kuaishou_nebula,kuaishou";

        List<String> appIdList = Splitter.on("_").splitToList(appId);
        System.out.println(appIds.contains("kuaisho"));
        System.out.println(appId.contains("kuaishou"));
        System.out.println(appIdList.contains("kuaishou_nebula"));
    }
}
